package com.lemo.mapreduce.model;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;

import org.apache.hadoop.io.Writable;

public class TableJoin implements Writable{
	private String tag;
	private String info;
	
	public TableJoin(){
		
	}
	public void set(String tag, String info) {
		this.tag = tag;
		this.info = info;
	}
	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	@Override
	public void write(DataOutput out) throws IOException {
		out.writeUTF(tag);
		out.writeUTF(info);
	}

	@Override
	public void readFields(DataInput in) throws IOException {
		this.tag = in.readUTF();
		this.info = in.readUTF();
	}

}
